package com.ict.txmsv2.controller.members;

import com.ict.txmsv2.model.MethodDescrition;
import com.ict.txmsv2.model.RespBean;
import com.ict.txmsv2.model.RespPageBean;
import com.ict.txmsv2.model.User;
import com.ict.txmsv2.services.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author yoleen
 * @date 2020/12/16 18:13
 */

@RestController
@RequestMapping("/members/basic")
public class BasicController {
    @Autowired
    UserService userService;

    @GetMapping("/")
    @MethodDescrition("分页查询成员信息")
    public RespPageBean getBasic(@RequestParam(defaultValue = "1") Integer page,
                                 @RequestParam(defaultValue = "10") Integer size,
                                 String name,String dept,String major,String beginTime,String endTime){
        return userService.getBasic(page, size, name, dept, major, beginTime, endTime);
    }

}
